#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<assert.h>

typedef int HeapDatatype;

typedef struct Heap
{
	HeapDatatype* a;
	int size;
	int capacity;
}Heap;

void HeapInit(Heap* hp);
void HeapDestroy(Heap* hp);
void HeapPush(Heap* ph,HeapDatatype x);

void HeapPop(Heap* ph);
bool HeapEmpty(Heap* ph);
HeapDatatype Heaptop(Heap* ph);
int HeapSize(Heap* ph);
